package com.example.demo.service;

import com.example.demo.domin.dto.UserDTO;
import com.example.demo.domin.vo.UserVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

@FeignClient(value = "loan-user-system",url = "http://127.0.0.1:8080/user")
public interface UserService {

    @PostMapping (value="/signUp",consumes = "application/json")
    void signUp(UserDTO userDTO);

    @GetMapping(value = "/list")
    List<UserVO> getUserList();
}
